<!--
 * @Author: wjc
 * @Date: 2025-09-10 16:42:40
 * @LastEditors: wjc
 * @LastEditTime: 2025-09-11 15:49:02
 * @Description: 
-->
<template>
  <NiceButton variant="icon" size="icon" @click="refresh" tooltip="刷新">
    <Icon icon="lucide:rotate-cw" class="h-4 w-4" />
  </NiceButton>
</template>

<script setup lang="ts">
  import { Icon } from '@iconify/vue'
  import { useRefresh } from '@nice/hooks'
  import { NiceButton } from '@nice/nice-ui'

  defineOptions({ name: 'LayoutRefresh' })

  const { refresh } = useRefresh()
</script>
